package com.ruoyi.project.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.business.mapper.BusinessAreaTypeMapper;
import com.ruoyi.project.business.domain.BusinessAreaType;
import com.ruoyi.project.business.service.IBusinessAreaTypeService;

/**
 * 菜地类型IDService业务层处理
 * 
 * @author ruoyi
 * @date 2020-11-04
 */
@Service
public class BusinessAreaTypeServiceImpl implements IBusinessAreaTypeService 
{
    @Autowired
    private BusinessAreaTypeMapper businessAreaTypeMapper;

    /**
     * 查询菜地类型ID
     * 
     * @param id 菜地类型IDID
     * @return 菜地类型ID
     */
    @Override
    public BusinessAreaType selectBusinessAreaTypeById(Long id)
    {
        return businessAreaTypeMapper.selectBusinessAreaTypeById(id);
    }

    /**
     * 查询菜地类型ID列表
     * 
     * @param businessAreaType 菜地类型ID
     * @return 菜地类型ID
     */
    @Override
    public List<BusinessAreaType> selectBusinessAreaTypeList(BusinessAreaType businessAreaType)
    {
        return businessAreaTypeMapper.selectBusinessAreaTypeList(businessAreaType);
    }

    /**
     * 新增菜地类型ID
     * 
     * @param businessAreaType 菜地类型ID
     * @return 结果
     */
    @Override
    public int insertBusinessAreaType(BusinessAreaType businessAreaType)
    {
        return businessAreaTypeMapper.insertBusinessAreaType(businessAreaType);
    }

    /**
     * 修改菜地类型ID
     * 
     * @param businessAreaType 菜地类型ID
     * @return 结果
     */
    @Override
    public int updateBusinessAreaType(BusinessAreaType businessAreaType)
    {
        return businessAreaTypeMapper.updateBusinessAreaType(businessAreaType);
    }

    /**
     * 批量删除菜地类型ID
     * 
     * @param ids 需要删除的菜地类型IDID
     * @return 结果
     */
    @Override
    public int deleteBusinessAreaTypeByIds(Long[] ids)
    {
        return businessAreaTypeMapper.deleteBusinessAreaTypeByIds(ids);
    }

    /**
     * 删除菜地类型ID信息
     * 
     * @param id 菜地类型IDID
     * @return 结果
     */
    @Override
    public int deleteBusinessAreaTypeById(Long id)
    {
        return businessAreaTypeMapper.deleteBusinessAreaTypeById(id);
    }
}
